import http from '../../service/http'
// 获取播放视频
export function getPlayVideo() {
  return http.get('/common/video/getPopularVideo')
}
// 点赞 取消点赞 
export function likeVideoAPI(userId, videoId) {
  return http.get(`user/${userId}/triggerLike/${videoId}`)
}
// 获取视频评论
export function getVideoComment(videoId) {
  return http.get(`video/${videoId}/getVideoComment/page/1`)
}
// 点赞 取消点赞 评论
export function likeCommentAPI(userId, videoId, commentId) {
  return http.get(`user/${userId}/triggerLikeComment/${videoId}/${commentId}`)
}
// http://127.0.0.1:3000/api/
// 评论视频
export function commentVideoAPI(data) {
  return http.post(`user/commentVideo`, data)
}